home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Caml Light 0.61 / Binaries / INSTALL < prev    next >
Encoding:
Text File  |  1994-07-07  |  2.5 KB  |  71 lines  |  [TEXT/ttxt]

  1.  
  2.                         Installing Caml Light
  3.                         on a Macintosh
  4.  
  5.  
  6. There are two Caml Light systems for the Macintosh:
  7.  
  8.  - A standalone application, which does not need MPW to run.
  9.    You only have the toplevel in this application: no separate compilation,
  10.    and no lexer and parser generators.
  11.    The application provides a graphics window and functions for drawing
  12.    in this window.
  13.  
  14.  - A set of MPW tools and scripts, which needs MPW (version 3.2) to run.
  15.    MPW is a programming environment sold by Apple.
  16.    These tools allow you to write MPW tools in Caml Light, and use the
  17.    parser generator and the lexer generator.  They are used for bootstrapping
  18.    Caml Light itself.  Graphics primitives are not available under MPW.
  19.  
  20.  
  21. INSTALLING THE STANDALONE APPLICATION ONLY:
  22.  
  23. This section describes how to install Caml Light if you do not have MPW.
  24.  
  25. You can install the application on a hard disk or on a floppy disk.
  26. It takes less than 800 kB of disk space.
  27.  
  28. 1.  Copy the "Caml Light" application and the "lib" folder to your hard disk
  29.    (or a floppy disk).  They must reside in the same folder.
  30.  
  31. 2.  (Optional)  Remove from the "lib" folder all files not ending in ".zi".
  32.  
  33. That's all.  You can now double-click the application.
  34.  
  35. If you see the line:
  36.  
  37.     > Cannot find file stream.zi
  38.  
  39. in the "Caml Light output" window, and a dialog box saying:
  40.  
  41.     "Caml Light terminated abnormally",
  42.  
  43. this means you did not put the "lib" folder beside the "Caml Light"
  44. application.  Go back to step 1.
  45.  
  46.  
  47. INSTALLING THE MPW TOOLS AND THE APPLICATION:
  48.  
  49. This section describes how to install Caml Light if you have MPW.
  50.  
  51. 1.  Copy the "Caml Light" application and the "lib" folder to your hard disk.
  52.     They must reside in the same folder.
  53.  
  54. 2.  Copy the tools and scripts from the "tools" folder to your hard disk.
  55.     They must be in a place where MPW will find them as commands.
  56.     There are two ways to achieve this result:
  57.     a.  You can copy them to the "Tools" or the "Scripts" folder in
  58.         your MPW folder.
  59.     b.  You can keep them in a separate folder, say "camltools", and add
  60.         the following line to your "UserStartup" file (assuming your disk
  61.         is named "My HD"):
  62.     
  63.           Set Commands "{Commands},My HD:camltools:"
  64.  
  65. 3.  Edit the "camlc" script, and replace "MacAdam:Caml Light:CL61:lib:"
  66.     (in the second line) with the pathname of the "lib" folder.
  67.     For example, if you put the "lib" folder directly
  68.     in your hard disk, the first line of "camlc" would read:
  69.  
  70.       Set stdlib "My HD:lib:"
  71.